package com.fort.teachermanagementsys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fort.teachermanagementsys.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Allen
 * @since 2024-04-11
 */

public interface SysRoleService extends IService<SysRole> {

    List<SysRole> getRoleList();

    void addRole(SysRole role);

    void updateRole(SysRole role);

    void deleteRole(Integer id);

    SysRole getRoleById(Integer id);

    void assignMenus(Integer roleId, List<Integer> menuIds);

    List<Integer> getMenuIdsByRoleId(Integer id);
}
